package com.prp.gwt.client.user.friend;

import java.util.Set;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.prp.gwt.client.ClientException;
import com.prp.gwt.client.vo.UserList;

@RemoteServiceRelativePath("friendRequest")
public interface FriendService extends RemoteService {
	public UserList getFriendList(int id) throws ClientException;

	public boolean isNeighbour(int id1, int id2) throws ClientException;

	public void breakup(int id1, int id2) throws ClientException;

	public boolean invite(int toId) throws ClientException;

	public UserList findInvite() throws ClientException;

	public boolean buildup(int id) throws ClientException;

	public void cancelInvite(int fromId) throws ClientException;

	public UserList searchUser(String userName) throws ClientException;

	public void recommend(Set<Integer> fromIds,
			Set<Integer> toIds) throws ClientException;
	
	public void deleteRecommend(int id) throws ClientException;
	
	public UserList getRecommendList() throws ClientException;
}
